from antlr4.error.ErrorStrategy import BailErrorStrategy
from antlr4.error.Errors import RecognitionException
from antlr4.Parser import Parser


class HatErrorStrategy(BailErrorStrategy):

    def recover(self, recognizer:Parser, e:RecognitionException):
        exit(1)
